//
//  LocationModel.h
//  Anda_Driver_Pro
//
//  Created by AnDa-Y on 2018/7/9.
//  Copyright © 2018年 chuangxing-1. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, ADLocationType) {
    ADLocationTypeLocation = 2,
    ADLocationTypeNavigation = 1
};

//导航点更新使用建议
typedef NS_ENUM (NSInteger, ADNaviLocationSuggestType) {
    ADNaviLocationSuggestTypeUse,//可以放心使用
    ADNaviLocationSuggestTypeBestNotUse,//最好别用
    ADNaviLocationSuggestTypeNotUse//不要用
};

@interface ADLocationModel : NSObject<NSCoding>

@property (assign, nonatomic) double latitude;
@property (assign, nonatomic) double longitude;
@property (assign, nonatomic) double speed;
@property (assign, nonatomic) double accuracy;
@property (assign, nonatomic) double angle;
@property (assign, nonatomic) NSTimeInterval time;
@property (assign, nonatomic) BOOL isMatchNaviPath;

@property (nonatomic, copy) NSArray<ADLocationModel *> *subLocations;

///高度
@property (nonatomic, assign) double altitude;

///方向
@property (nonatomic, assign) NSInteger heading;

@property (copy, nonatomic) NSString *adcode;
@property (copy, nonatomic) NSString *province;
@property (copy, nonatomic) NSString *city;
@property (copy, nonatomic) NSString *name;
@property (copy, nonatomic) NSString *address;

@property (assign, nonatomic) ADLocationType type;

@property (assign, nonatomic) double distance;

@property (copy, nonatomic) NSString *uuid;

//导航点使用建议，是导航点的时候使用
@property (assign, nonatomic) ADNaviLocationSuggestType suggestType;

@end

@interface ADMinLocationModel : NSObject
@property (assign, nonatomic) double latitude;
@property (assign, nonatomic) double longitude;
@end
